package com.example.highclasscomponent;

import android.os.Bundle;

import androidx.annotation.Nullable;
import androidx.appcompat.app.AppCompatActivity;
import androidx.viewpager.widget.ViewPager;

import com.example.highclasscomponent.adapter.FragmentLaunchAdapter;
import com.example.highclasscomponent.adapter.LaunchPageAdapter;

public class FragmentLaunchActivity extends AppCompatActivity {
    private int[] mLaunchImageArray={R.drawable.guide_bg1,R.drawable.guide_bg2,
            R.drawable.guide_bg3,R.drawable.guide_bg4};
    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_launch_page);
        ViewPager viewPage = findViewById(R.id.vp);
        FragmentLaunchAdapter adapter=new FragmentLaunchAdapter(getSupportFragmentManager(),mLaunchImageArray);
        viewPage.setAdapter(adapter);
    }
}
